# Maintainer: Rexct <rexct1 at gmail dot com>
pkgname=re2c
pkgver=0.13.6
pkgrel=1
pkgdesc="A tool for generating C-based recognizers from regular expressions"
arch=('sh4')
url="http://re2c.sourceforge.net/"
license=('GPL')
backup=()
groups=()
depends=('gcc-libs')
optdepends=()
makedepends=()
provides=()
conflicts=()
options=()
changelog=CHANGELOG
source=($pkgname-$pkgver.tar.gz::http://jaist.dl.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz )
noextract=()
md5sums=('8927c3f65d445c40f2e6213269dcef2d')

build() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  ./configure --prefix=/usr
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make -j1 check
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -D -m644 README "${pkgdir}"/usr/share/doc/$pkgname/README
  install -D -m644 README.in "${pkgdir}"/usr/share/doc/$pkgname/README.in
}
